package com.ruoyi.recommend.common;


import java.util.Properties;

/**
 * @author jackyshi
 */
public interface Model {

    public void loadData(DataSet data) throws Exception;

    public void train() throws Exception;

    public void setProperties(Properties prop);

    public Properties getProperties();

    public double online(int userId, int itemId) throws Exception;

    public void saveModel(String filePath) throws Exception;

    public void loadModel(String modelPath) throws Exception;

}
